package com.longrise.co.ui.mine.model;

import com.ly.common.commonutils.StringUtils;

import java.io.Serializable;

/**
 * Created by luoyang on 2017-7-14.
 */

public class UserInfo implements Serializable {

    /**
     * nickname : xiao123
     * complainnum : 3
     * authstatus : 1
     * areaid : 330000000000000000
     * userflag : xiao123
     * usertype : 11
     * carnum : 4
     * password : 867BEmiLTkc=
     * photo : http://qcda.96520.com/LEAP/Download/carappimgs/2017/3/3/d4515d28deef42808dd387e01547c97b.jpg
     * mobile : 15827180540
     */

    private String nickname;
    private int complainnum;
    private String authstatus;
    private String areaid;
    private String userflag;
    private String usertype;
    private String carnum;
    private String password;
    private String photo;
    private String mobile;
    private String evaluatenum;
    private String name;
    private String cardno;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getComplainnum() {
        return complainnum;
    }

    public void setComplainnum(int complainnum) {
        this.complainnum = complainnum;
    }

    public String getAuthstatus() {
        String value = "";
        if("0".equals(authstatus)) {
            value = "未认证";
        } else if("1".equals(authstatus)) {
            value = "审核中";
        } else if("2".equals(authstatus)) {
            value = "已认证";
        } else if("3".equals(authstatus)) {
            value = "审核不通过";
        }
        return value;
    }

    public void setAuthstatus(String authstatus) {
        this.authstatus = authstatus;
    }

    public String getAreaid() {
        return areaid;
    }

    public void setAreaid(String areaid) {
        this.areaid = areaid;
    }

    public String getUserflag() {
        return userflag;
    }

    public void setUserflag(String userflag) {
        this.userflag = userflag;
    }

    public String getUsertype() {
        return usertype;
    }

    public void setUsertype(String usertype) {
        this.usertype = usertype;
    }

    public String getCarnum() {
        if(StringUtils.isEmpty(carnum)) {
            return "0";
        }
        return carnum;
    }

    public void setCarnum(String carnum) {
        this.carnum = carnum;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEvaluatenum() {
        return evaluatenum;
    }

    public void setEvaluatenum(String evaluatenum) {
        this.evaluatenum = evaluatenum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }
}
